import { jsonRequest } from "../request.js";

//获取用户分页
export const userPage = (data) => {
	return jsonRequest("/api/admin/user/page", "post", data);
};
//获取用户(回显)
export const getUser = (data) => {
	return jsonRequest("/api/admin/user/view?userId=", "get", data);
};
//新增用户
export const addUser = (data) => {
	return jsonRequest("/api/admin/user/add", "post", data);
};
//修改用户
export const updateUser = (data) => {
	return jsonRequest("/api/admin/user/update", "put", data);
};
//删除用户
export const deleteUser = (data) => {
	return jsonRequest("/api/admin/user/delete?userIdList=", "delete", data);
};
//导出用户
export const exportUser = (data) => {
	return jsonRequest("/api/admin/user/export", "post", data, "blob");
};
